From: Julien Grall Date: Wed, 22 May 2013 11:43:12 +0000 (+0100) Subject: drivers/exynos4210: Return -ENOMEM when ioremap has failed X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6792 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=7312c21dbd3f5026f087ba72c4e36754f1921762;p=xen.git drivers/exynos4210: Return -ENOMEM when ioremap has failed Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c index f151390352..f7971da73b 100644 --- a/xen/drivers/char/exynos4210-uart.c +++ b/xen/drivers/char/exynos4210-uart.c @@ -328,6 +328,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev, if ( !uart->regs ) { early_printk("exynos4210: Unable to map the UART memory\n"); + return -ENOMEM; } res = dt_device_get_irq(dev, 0, &uart->irq); if ( res )